11deb3ae79bf115c1ec34f0c3695524e4e20b6e2,libs/SalesforceHybrid/src/com/salesforce/androidsdk/phonegap/plugin/SmartStorePlugin.java,SmartStorePlugin,removeStore,#JSONArray#CallbackContext#,343

Before Change


		if (isGlobal)
			SmartStoreSDKManager.getInstance().removeGlobalSmartStore(storeName);
		else
			SmartStoreSDKManager.getInstance().removeSmartStore(storeName,UserAccountManager.getInstance().getCurrentUser(),UserAccountManager.getInstance().getCurrentUser().getCommunityId());

		PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, true);
		callbackContext.sendPluginResult(pluginResult);

After Change


        if (isGlobal) {
            SmartStoreSDKManager.getInstance().removeGlobalSmartStore(storeName);
        } else {
            final UserAccount account = UserAccountManager.getInstance().getCurrentUser();
            if (account == null) {
                throw new Exception("No user account found");
            }  else {
                SmartStoreSDKManager.getInstance().removeSmartStore(storeName, account, account.getCommunityId());
            }
        }
		final PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, true);